package com.example.find.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.example.constants.Constants;
import com.example.find.R;
import com.example.find.R2;

import butterknife.ButterKnife;
import butterknife.OnClick;

@Route(path = Constants.FIND_ACTIVITY_URL)
public class FindMainActivity extends AppCompatActivity{


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_find_main);
        ButterKnife.bind(this);
    }

    @OnClick({R2.id.get_code_btn,R2.id.sort_algorithm_btn})
    public void onClick(View view){
        int id = view.getId();
        if(id == R.id.get_code_btn){  //获取验证码
            startActivity(new Intent(this,GetCodeActivty.class));
        }else if(id == R.id.sort_algorithm_btn){ //排序算法
            startActivity(new Intent(this,SortingAlgorithmActivity.class));
        }
    }




 }
